<%@ page contentType="text/html;charset=UTF-8" %>
<div id="categoryDiv">
	<div>
		类别：<a href="javascript:doClickCategory('')" style="font-weight:bold;color:#000000">全部</a>
		&nbsp;&nbsp;<a id="category_1" href="javascript:doClickCategory(1)">泥水工</a>
		&nbsp;&nbsp;<a id="category_2" href="javascript:doClickCategory(2)">刮腻子</a>
		&nbsp;&nbsp;<a id="category_3" href="javascript:doClickCategory(3)">防水</a>
		&nbsp;&nbsp;<a id="category_4" href="javascript:doClickCategory(4)">贴砖</a>
		&nbsp;&nbsp;<a id="category_5" href="javascript:doClickCategory(5)">敲墙</a>
		&nbsp;&nbsp;<a id="category_6" href="javascript:doClickCategory(6)">打孔</a>
		&nbsp;&nbsp;<a id="category_10" href="javascript:doClickCategory(10)">木匠</a>
		&nbsp;&nbsp;<a id="category_7" href="javascript:doClickCategory(7)">吊顶工</a>
		&nbsp;&nbsp;<a id="category_8" href="javascript:doClickCategory(8)">油漆工</a>
		&nbsp;&nbsp;<a id="category_9" href="javascript:doClickCategory(9)">水电工</a>
	</div>
	<div style="height:2px;line-height:2px" ></div>
	<div>
		区域：<a  href="javascript:doClickCity('')" style="font-weight:bold;color:#000000">全部</a>&nbsp;&nbsp;
		<a id="city_1377" href="javascript:doClickCity(1377)">武侯区</a>&nbsp;&nbsp;
		<a id="city_1376" href="javascript:doClickCity(1376)">金牛区</a>&nbsp;&nbsp;
		<a id="city_1375" href="javascript:doClickCity(1375)">青羊区</a>&nbsp;&nbsp;
		<a id="city_1374" href="javascript:doClickCity(1374)">锦江区</a>&nbsp;&nbsp;
		<a id="city_1378" href="javascript:doClickCity(1378)">成华区</a>&nbsp;&nbsp;
		<a id="city_1384" href="javascript:doClickCity(1384)">温江区</a>&nbsp;&nbsp;
	</div>
	<div>
	</div>

  </div>
  <input type="hidden" id="cityId" name="cityId" value="${query.cityId}" />
  <input type="hidden" id="corpCategoryId" name="corpCategoryId" value="${query.corpCategoryId}" />
  <script>
  	if('${query.corpCategoryId}'!=''){
  		document.getElementById("category_${query.corpCategoryId}").style.color='red';
  		document.getElementById("category_${query.corpCategoryId}").style.fontWeight='bold';
  	}
  	if('${query.cityId}'!=''){
  		document.getElementById("city_${query.cityId}").style.color='red';
  		document.getElementById("city_${query.cityId}").style.fontWeight='bold';
  	}
  	
  	function doClickCategory(catetoryId){
  		if(document.getElementById("cityId").value!="")
  			window.location.href = "${ctx}/PublishInfo/list.do?corpCategoryId="+catetoryId+"&cityId="+document.getElementById("cityId").value;
  		else
  			window.location.href = "${ctx}/PublishInfo/list.do?corpCategoryId="+catetoryId;
  	}
  	
  	function doClickCity(cityId){
  		if(document.getElementById("corpCategoryId").value!='')
  			window.location.href = "${ctx}/PublishInfo/list.do?cityId="+cityId+"&corpCategoryId="+document.getElementById("corpCategoryId").value;
  		else
  			window.location.href = "${ctx}/PublishInfo/list.do?cityId="+cityId;
  	}
  </script>